package designpattern.struct.adapter;

/**
 * 在内部封装一个Adaptee对象，把源接口转换为目标接口
 */
public class Adapter implements Target {
    private final Adaptee adaptee = new Adaptee();

    @Override
    public void ma() {
        adaptee.m1();
    }

    @Override
    public void mb() {
        adaptee.m2();
    }
}
